/*
 * @Author: DUST
 * @Date: 2023-06-12 15:57:06
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-12 17:27:30
 * @FilePath: \vite-project\src\store\sysInfo.ts
 * @Description: 
 * undefined
 */
import { defineStore } from "pinia";
import store from ".";
import SysInfo from "@/utils/sysInfo";
import { Ref } from "vue";
const sysInfo = new SysInfo()

interface State {
  ip: Ref<string>
}

const sysInfoStore = defineStore("sysInfo",{
  state: (): State => ({
    ip: sysInfo.ip
  }),
  persist: {
    enabled: true
  }
})

export default sysInfoStore(store);